package org.teamswift.crow.rbac.exceptions;

import lombok.Getter;
import org.springframework.http.HttpStatus;
import org.teamswift.crow.rbac.enums.CrowRbacResultCode;
import org.teamswift.crow.rest.exception.BusinessException;
import org.teamswift.crow.rest.result.CrowResultCode;
import org.teamswift.crow.rest.result.ICrowResultCode;

@Getter
public class CrowTokenInvalidException extends BusinessException {

    protected ICrowResultCode resultCode = CrowRbacResultCode.TokenInvalid;

    public CrowTokenInvalidException(String message) {
        super(message);
        setHttpStatus(HttpStatus.UNAUTHORIZED);
    }
}
